package com.yxt.shecaiyun.common;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

// common/PageResult.java
@Data
@AllArgsConstructor
public class PageResult<T> {
    private Long total;       // 总记录数
    private List<T> records; // 当前页数据
    private Long page;     // 当前页码
    private Long pageSize;// 每页数量

    public PageResult(Long total, List<T> records) {
        this.total = total;
        this.records = records;
    }
}